package com.proj.service.impl;

import com.proj.bean.Category;
import com.proj.dao.IndexDao;
import com.proj.service.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class IndexServiceImpl implements IIndexService {

    @Autowired
    IndexDao IDao;

    @Override
    public List<Category> getCategory() {
        return IDao.getCategory();
    }

}
